package com.atguigu.tingshu.user.service;

import com.atguigu.tingshu.model.user.UserInfo;
import com.atguigu.tingshu.vo.user.UserInfoVo;
import com.atguigu.tingshu.vo.user.UserPaidRecordVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.HashMap;
import java.util.List;

public interface UserInfoService extends IService<UserInfo> {

    HashMap<String, Object> wxLogin(String code);

    UserInfoVo getUserInfo(Long userId);

    void updateUser(Long userId, UserInfoVo userInfoVo);

    List<Integer> getUserPaidTrack(Long userId, Long albumId,List<Long> trackIdList);

    Boolean isPaidAlbum(Long userId, Long albumId);

    List<Long> findUserPaidTrackList(Long albumId, Long userId);

    void savePaidRecord(UserPaidRecordVo userPaidRecordVo);
}
